package ActorObj;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gdx.scenes.scene2d.Actor;

public class BackGroundText extends Actor {
	public TextureRegion region;
	public Texture texture;
	public BackGroundText() {
		texture=new Texture(Gdx.files.internal("105z.png"));
		region=new TextureRegion(texture, 50, 50);
	}
	private int cs=50;
	public void resetPic(String string){
//		region=new TextureRegion(texture, cs+=10, cs);
		region.setRegion(0, 0, cs+=10, cs);
	}
	
	@Override
	public void draw(SpriteBatch batch, float parentAlpha) {
		// TODO Auto-generated method stub
		batch.draw(region, getX(), getY());
		
	}
	
	
}
